__author__ = 'Compaq'
class truyen:
    """  Lớp đối tượng về truyện  """
    __ID_HINH_THUC = 1
    __ID_LANG_TRUYEN = 1;
    __ANH_BIA = "NONE"
    __TEN_TRUYEN = "NONE"
    __GIOI_THIEU = "NONE"
    __URL_TRUYEN = "NONE"

    def __init__(self,hinh_thuc = 1,lang_truyen = 1,anh_bia = "NONE",ten_truyen ="NONE",gioi_thieu ="NONE",url="NONE"):
        self.__URL_TRUYEN = url
        self.__ID_HINH_THUC = hinh_thuc
        self.__ID_LANG_TRUYEN = lang_truyen
        self.__ANH_BIA = anh_bia
        self.__TEN_TRUYEN = ten_truyen
        self.__GIOI_THIEU = gioi_thieu

    def setIDHinhthuc(self,id = 1):
        self.__ID_HINH_THUC = id
    def getIDHinhthuc(self):
        return self.__ID_HINH_THUC

    def setIDLangtruyen(self,id = 1):
        self.__ID_LANG_TRUYEN = id
    def getIDLangtruyen(self):
        return self.__ID_LANG_TRUYEN

    def setAnhbia(self,url="NONE"):
        self.__ANH_BIA = url
    def getAnhbia(self):
        return  self.__ANH_BIA

    def setTentruyen(self,name = "NONE"):
        self.__TEN_TRUYEN = name
    def getTentruyen(self):
        return self.__TEN_TRUYEN

    def setGioithieu(self,intro ="NONE"):
        self.__GIOI_THIEU =intro
    def getGioithieu(self):
        return self.__GIOI_THIEU

    def __del__(self):
        del self.__ID_HINH_THUC
        del self.__ID_LANG_TRUYEN
        del self.__ANH_BIA
        del self.__TEN_TRUYEN
        del self.__GIOI_THIEU
        del self.__URL_TRUYEN